﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="TranslatorModule.cs" company="WordSteps.com">
//   All rights reserved
// </copyright>
// <summary>
//   Defines the TranslatorModule type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace RapidDict.Modules.Translator
{
    using Microsoft.Practices.Composite.Modularity;
    using Microsoft.Practices.Composite.Regions;

    [Module(ModuleName = "TranslatorModule")]
    [ModuleDependency("TranslationServiceModule")]
    public class TranslatorModule : IModule
    {
        private readonly IRegionManager regionManager;

        public TranslatorModule(IRegionManager regionManager)
        {
            this.regionManager = regionManager;
        }

        public void Initialize()
        {
            this.regionManager.RegisterViewWithRegion("MainRegion", typeof(Views.TranslatorView));
        }
    }
}